home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 26 / macformat_26.iso / Shareware / Programación / C Reference Card / C Reference Card.rsrc / TEXT_402_2.txt < prev    next >
Text File  |  1997-01-29  |  4KB  |  130 lines

  1. KEYWORDS
  2. _________________________________________________________________________
  3.  
  4.  
  5. asm*         Identifies following statement as inline assembly language.
  6.  
  7. auto         Default function variable declaration (not normally used).
  8.  
  9. break        Skips to end of current loop.  Usually used with 'switch'.
  10.  
  11. case         Control statement used with 'switch'.
  12.  
  13. catch*       Control statement used with 'try' and 'throw' keywords to
  14.              provide exception handling.
  15.  
  16. char         Character variable type (1 byte).
  17.  
  18. class*       Identifies a class definition.
  19.  
  20. const        Qualifier that establishes a variable whose value cannot be
  21.              modified.
  22.  
  23. continue     Control statement used with 'while', 'do', and 'for'. Causes
  24.              next iteration of loop to execute immediately.
  25.  
  26. default      Control statement used with 'switch'.
  27.  
  28. delete*      Deallocates memory assigned to object.
  29.  
  30. do           Control statement.
  31.  
  32. double       Floating point variable type. Minimum of 10 digits (decimal)
  33.              precision.
  34.  
  35. else         Control statement used with 'if'.
  36.  
  37. enum         Variable type. Lets you declare symbolic names to represent
  38.              integer constants. Used to improve readability.
  39.  
  40. extern       Qualifier that identifies a variable as being defined
  41.              elsewhere in program.
  42.  
  43. float        Floating point variable type. Minimum of 6 digits (decimal)
  44.              precision.
  45.  
  46. for          Control statement.
  47.  
  48. friend*      Function and class specifier that allows access to objects
  49.              private data. 
  50.  
  51. goto         Control statement (not normally used).
  52.  
  53. if           Control statement.
  54.  
  55. inline*      Function identifier that tells compiler to treat function as
  56.              an inline function.
  57.  
  58. int          Integer variable type (minimum range is +/-32767).
  59.  
  60. long         Integer variable type (minimum range is +/-2147483647).
  61.  
  62. new*         Allocates memory for an object and returns a pointer.
  63.  
  64. operator*    Function used to overload existing operators.
  65.  
  66. private*     Default access specifier for class members.  Prevents access
  67.              outside of class.
  68.  
  69. protected*   Access specifier which allows access within class as well as
  70.              derived classes.
  71.  
  72. public*      Access specifier which allows access by functions outside of
  73.              class.
  74.  
  75. register     Register variable qualifier. Requests compiler to use CPU
  76.              registers to store variable.
  77.  
  78. return       Return variable to calling function.
  79.  
  80. short        Integer variable type (minimum range is +/-32767).
  81.  
  82. signed       Integer variable type (or qualifier when used in conjunction
  83.              with an integer other than an 'int'). Identifies that
  84.              variable can store both positive and negative numbers.
  85.  
  86. sizeof       Returns size of variable in bytes.
  87.  
  88. static       Function variable qualifier. Maintains values between 
  89.              function calls.
  90.  
  91. struct       Identifies a structure definition.
  92.  
  93. switch       Control statement. Uses 'case', 'break', and 'default'.
  94.  
  95. template*    Used to define template functions and classes which use
  96.              multiple data types.
  97.  
  98. this*        Pointer sent to member function that contains the address of
  99.              the object.
  100.  
  101. throw*       Control statement used with 'catch' and 'try' keywords to
  102.              provide exception handling.
  103.  
  104. try*         Control statement used with 'catch' and 'throw' keywords to
  105.              provide exception handling.
  106.  
  107. typedef      Defines creation of new data type (or assign new name to 
  108.              existing data type).
  109.  
  110. union        Identifies a union definition. Similar definition as 
  111.              structure, except different data types are stored in same
  112.              memory space (but not simultaneously).
  113.  
  114. unsigned     Integer variable type (or qualifier when used in conjunction
  115.              with an integer other than an 'int'). Identifies that
  116.              variable can only store positive numbers.
  117.  
  118. virtual*     Method qualifier that tells compiler to bind function at 
  119.              runtime. Also used to identify virtual classes when using
  120.              multiple inheritance.
  121.  
  122. void         Null data type.
  123.  
  124. volatile     Variable qualifier that identifies data which can be altered
  125.              by agencies other than the program.
  126.  
  127. while        Control statement used with 'do'.
  128.  
  129. _________________________________________________________________________
  130. *   C++ specific keywords (additions to straight C).